package cn.wangxl.loglog.constants;

/**
 * @Deacription 应用枚举
 * @Author 20112128
 * @Date 2020/5/1 1:39
 **/
public enum Application {

    PETTY_LOAN("petty_loan"),

    ;
    String appName;

    Application(String appName) {
        this.appName = appName;
    }

    public String getAppName() {
        return appName;
    }

    public void setAppName(String appName) {
        this.appName = appName;
    }

    public static Application getByName(String name){
        for(Application application:Application.values()){
            if(application.appName.equals(name)){
                return application;
            }
        }
        return null;
    }
}
